package com.pzhu.dormitory.utils;


import lombok.extern.slf4j.Slf4j;

@Slf4j
public abstract class AbstractException extends RuntimeException {
    public AbstractException(String message) {
        super(message);
        doSomething();
    }

    /**
     * 发生异常时触发
     */
    protected abstract void doSomething();

}
